package com.dgw.enums;

public enum ResultEnum { 
	UNKOWN(-1,"未知错误"),
	SUCCESS(200,"请求成功"),
	LOCK_FAIL(444,"redis分布式锁加锁失败，当前线程未抢到相关的锁资源"),
	LOGIN_FAIL(445,"登录失败"),
	USERNAME_OR_PWD_ISEMPTY(446,"用户名或密码为空"),
	PARAM_VALID_FAIL(303,"参数校验错误"),
	;
	
	private Integer code;
	private String msg;
	
	private ResultEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public Integer getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

	
	
}
